package com.voxel.sense.infomsg.data.bean;

import com.example.com.common.widget.diffui.DiffUiDataCallBack;

import java.io.Serializable;

/**
 * 实时数据表格对象
 * Created by ChenYiYao on 2018/8/1.
 */
public class AverageDataBean implements DiffUiDataCallBack.UidataDiffer<AverageDataBean> ,Serializable {
    private static final long serialVersionUID = -8340573393446212203L;
    private String paramUnit; //单位
    private String time; //时间
    private String paramName; //元素名称
    private String value; //值
    private String standarValues; //标准值

    public AverageDataBean(String paramUnit, String paramName, String time, String value, String standarValues) {
        this.paramUnit = paramUnit;
        this.time = time;
        this.paramName = paramName;
        this.value = value;
        this.standarValues = standarValues;
    }

    public AverageDataBean() {
    }



    public String getParamUnit() {
        return paramUnit;
    }

    public void setParamUnit(String paramUnit) {
        this.paramUnit = paramUnit;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getParamName() {
        return paramName;
    }

    public void setParamName(String paramName) {
        this.paramName = paramName;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public String getStandarValues() {
        return standarValues;
    }

    public void setStandarValues(String standarValues) {
        this.standarValues = standarValues;
    }

    @Override
    public boolean isSame(AverageDataBean old) {
        return paramName.equals(old.paramName);
    }

    @Override
    public boolean isDataContentSame(AverageDataBean old) {
        return value.equals(old.value) && time == time;
    }
}
